package com.example.tetstmybatis.service;

import com.example.tetstmybatis.domain.Score;
import com.example.tetstmybatis.domain.ScoreExample;
import com.example.tetstmybatis.mapper.ScoreMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScoreService {
    @Autowired
    private ScoreMapper scoreMapper;
    public List<Score> list(){
        return scoreMapper.selectByExample(new ScoreExample());
    }
}
